﻿namespace In66.Net.Repository.IRepositories.ISqlSugar
{
    public interface ISqlSugarUnitOfWork
    {
        SqlSugarClient GetDbClient();

        void BeginTran();

        void CommitTran();

        void RollbackTran();

        Task CommitTranAsync(CancellationToken cancellationToken = default);

        Task RollbackTranAsync(CancellationToken cancellationToken = default);
    }
}
